<template>
  <view class="container">
    <!-- 公司信息 -->
    <view class="company-info">
      <image class="logo" src="/static/images/logo.png" mode="aspectFit"></image>
      <text class="name">法律援助小程序</text>
      <text class="version">Version 1.0.0</text>
    </view>

    <!-- 联系信息 -->
    <view class="contact-info">
      <view class="info-item">
        <uni-icons type="location" size="20" color="#1890ff"></uni-icons>
        <text>地址：北京市朝阳区建国路88号</text>
      </view>
      <view class="info-item">
        <uni-icons type="phone" size="20" color="#1890ff"></uni-icons>
        <text>电话：400-123-4567</text>
      </view>
      <view class="info-item">
        <uni-icons type="email" size="20" color="#1890ff"></uni-icons>
        <text>邮箱：support@legal-aid.com</text>
      </view>
    </view>

    <!-- 地图 -->
    <view class="map-section">
      <map
        class="map"
        :latitude="39.908823"
        :longitude="116.397470"
        :markers="markers"
        scale="16"
      ></map>
    </view>

    <!-- 公司简介 -->
    <view class="company-desc">
      <view class="section-title">公司简介</view>
      <text class="desc">法律援助小程序是一个专业的法律服务平台，致力于为用户提供便捷、高效的法律服务。我们拥有一支专业的律师团队，涵盖婚姻家事、劳动纠纷、合同纠纷等多个领域，为用户提供全方位的法律支持。</text>
    </view>

    <!-- 服务承诺 -->
    <view class="service-promise">
      <view class="section-title">服务承诺</view>
      <view class="promise-list">
        <view class="promise-item">
          <uni-icons type="checkmarkempty" size="20" color="#07c160"></uni-icons>
          <text>专业律师团队</text>
        </view>
        <view class="promise-item">
          <uni-icons type="checkmarkempty" size="20" color="#07c160"></uni-icons>
          <text>24小时在线服务</text>
        </view>
        <view class="promise-item">
          <uni-icons type="checkmarkempty" size="20" color="#07c160"></uni-icons>
          <text>隐私信息保护</text>
        </view>
        <view class="promise-item">
          <uni-icons type="checkmarkempty" size="20" color="#07c160"></uni-icons>
          <text>服务不满意退款</text>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      markers: [{
        id: 1,
        latitude: 39.908823,
        longitude: 116.397470,
        title: '法律援助小程序'
      }]
    }
  }
}
</script>

<style lang="scss">
.container {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 30rpx;
}

.company-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40rpx 0;
  background-color: #fff;
  
  .logo {
    width: 160rpx;
    height: 160rpx;
  }
  
  .name {
    font-size: 36rpx;
    font-weight: bold;
    margin-top: 20rpx;
  }
  
  .version {
    font-size: 24rpx;
    color: #999;
    margin-top: 10rpx;
  }
}

.contact-info {
  margin-top: 20rpx;
  padding: 30rpx;
  background-color: #fff;
  
  .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20rpx;
    
    &:last-child {
      margin-bottom: 0;
    }
    
    text {
      font-size: 28rpx;
      margin-left: 20rpx;
    }
  }
}

.map-section {
  margin-top: 20rpx;
  padding: 0 30rpx;
  
  .map {
    width: 100%;
    height: 400rpx;
    border-radius: 12rpx;
  }
}

.company-desc {
  margin-top: 20rpx;
  padding: 30rpx;
  background-color: #fff;
  
  .section-title {
    font-size: 32rpx;
    font-weight: bold;
    margin-bottom: 20rpx;
  }
  
  .desc {
    font-size: 28rpx;
    color: #666;
    line-height: 1.6;
  }
}

.service-promise {
  margin-top: 20rpx;
  padding: 30rpx;
  background-color: #fff;
  
  .section-title {
    font-size: 32rpx;
    font-weight: bold;
    margin-bottom: 20rpx;
  }
  
  .promise-list {
    .promise-item {
      display: flex;
      align-items: center;
      margin-bottom: 20rpx;
      
      &:last-child {
        margin-bottom: 0;
      }
      
      text {
        font-size: 28rpx;
        margin-left: 20rpx;
      }
    }
  }
}
</style> 